#ifndef __LCD_H_
#define __LCD_H_
/**********************************
?????4??????????,
??8???????
**********************************/
//#define LCD1602_4PINS

/**********************************
?????
**********************************/
#include<reg51.h>

//---??????---//
#ifndef uchar
#define uchar unsigned char
#endif

#ifndef uint 
#define uint unsigned int
#endif

/**********************************
PIN???
**********************************/
#define LCD1602_DB  P0      //data bus ????
sbit LCD1602_RS = P2^6;
sbit LCD1602_RW = P2^5;
sbit LCD1602_EN = P2^7;	 

/**********************************
????
**********************************/
/*?51???12MHZ????????*/
//void Lcd1602_Delay1ms(uint c);   //?? 0usvo
void LCD_Delay10ms(unsigned int c);
//void Read_Busy();           //?????,??bit7?0,????;1??
void Lcd1602_Write_Cmd(unsigned char cmd);     //???
void Lcd1602_Write_Data(unsigned char dat);   //???
void LcdSetCursor(unsigned char x,unsigned char y);  //????
void LcdShowStr(unsigned char x,unsigned char y,unsigned char *str);     //?????
void InitLcd1602();              //1602???
					  

#endif

